import { request, config } from '../utils'
import * as commonService from './common'

const {api: {product}} = config

export async function query (params = {}) {
  params.apiBaseUrl = `${product}`
  return commonService.commonQuery(params)
}

export async function type () {
  const url = `${product}/type/all`
  return request({url: url, method: 'GET'})
}
